﻿using Commons.Models.Settings.Dtos.Locks;
using Commons.Models.Settings.Dtos.TradeValues;
using System.Collections.Generic;
using System.Xml.Serialization;

namespace Commons.Models.Settings.Dtos.Questions
{
    public class QuestionDefinitionDto
    {
        [XmlAttribute(AttributeName = "id", Type = typeof(int))]
        public int Id { get; set; }

        [XmlAttribute(AttributeName = "correct", Type = typeof(int))]
        public int CorrectAnswerId { get; set; }

        [XmlAttribute(AttributeName = "id", Type = typeof(string))]
        public string Categories { get; set; }

        [XmlElement(ElementName = "question", Namespace = "http://www.ibeltran.com/schema/game/questions")]
        public QuestionDto Question { get; set; }

        [XmlElement(ElementName = "answer", Namespace = "http://www.ibeltran.com/schema/game/questions")]
        public List<AnswerDto> Answers { get; set; }

        [XmlElement(ElementName = "lock", Namespace = "http://www.ibeltran.com/schema/game/lock")]
        public LockDto Lock { get; set; }

        [XmlElement(ElementName = "reward", Namespace = "http://www.ibeltran.com/schema/game/tradevalue")]
        public RewardDto Reward { get; set; }
    }
}